home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group01a.txt / 000037_icon-group-sender _Mon May 29 11:57:32 2000.msg < prev    next >
Internet Message Format  |  2002-01-03  |  1KB

  1. Return-Path: <icon-group-sender>
  2. Received: (from root@localhost)
  3.     by baskerville.CS.Arizona.EDU (8.9.1a/8.9.1) id LAA02046
  4.     for icon-group-addresses; Mon, 29 May 2000 11:57:10 -0700 (MST)
  5. Message-Id: <200005291857.LAA02046@baskerville.CS.Arizona.EDU>
  6. From: gep2@terabites.com
  7. Date: Mon, 29 May 2000 11:39:43 -0500
  8. Subject: Lists: sort on more than one field?
  9. To: icon-group@optima.CS.Arizona.EDU
  10. Errors-To: icon-group-errors@optima.CS.Arizona.EDU
  11. Status: RO
  12. Content-Length: 946
  13.  
  14. > I am currently working on a small databaseof library data. Data
  15. is the output of a database program and is in comma-delimited
  16. format, therefore easily accesible as lists or records. I would
  17. like to sort data not only by one field (I use sortf for that)
  18. but one more than one field: i.e. sort on field_1 and osrt all
  19. data with the same value for field_1 by field_4, for example. Is
  20. it possible? I did not find anything in the Icon library for
  21. that. May I ask for advice?
  22.  
  23. The answer is so simple as to be trivial.... simply build an additional (single) 
  24. field (perhaps temporarily) which contains all the fields you wish to sort on, 
  25. in the order of precedence (most important first).  :-)
  26.  
  27. Gordon Peterson
  28. http://web2.airmail.net/gep2/
  29. Support the Anti-SPAM Amendment!  Join at http://www.cauce.org/
  30. 12/19/98: the day the Conservatives demonstrated their scorn for their
  31.    fraudulent sham of representative government.  Voters, remember it!
  32.  
  33.